﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace RattlerRaceGUI
{
    public partial class LevelSelection : Form
    {

        private static int _selectedLevel = 0;

        public int SelectedLevel
        {
            get { return _selectedLevel; }
            set { _selectedLevel = value; }
        }
        
        public LevelSelection()
        {
            InitializeComponent();
        }

        private void trackBar1_Scroll(object sender, EventArgs e)
        {
            textBox1.Text = trackBar1.Value.ToString();
        }

        private void bCancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void bOK_Click(object sender, EventArgs e)
        {
            _selectedLevel = trackBar1.Value - 1;
            this.Close();
        }
    }
}
